﻿@using PagedList.Mvc;
@using PagedList;
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@{
    if (!String.IsNullOrEmpty(ViewBag.Msg))
    {
    <script>        alert("@ViewBag.Msg")</script>
    }
}
<div class="site_map">
    @Html.ActionLink("Home", "Index", "Home") / Feedbacks
</div>
<br />
<div class="search_content">
    @using (Ajax.BeginForm("Index", "Feedback", new AjaxOptions
    {
        InsertionMode = InsertionMode.Replace,
        HttpMethod = "GET",
        UpdateTargetId = "unobtrusive",
    }, new { @class = "form-inline" }))
    {
        @Html.TextBox("keyWord", "", new { placeholder = "Feedback's Title" })
        <button type="submit" class="btn" value="Search" style="width: 80px">
            Search</button>
        @Html.ActionLink("Reload", "Index", "Feedback", null, new { style = "width:54px", @class="btn" })
    }
</div>
<br />
<div id="unobtrusive">
    @Html.Partial("_List")
</div>
